package com.promise.jokerdream.database.entity

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

/**
 * Room 实体类 - 用户账户
 * 只存储账户基本信息（userId, username, cookie）
 * 配置信息存储在 UserConfigEntity 及相关表中
 */
@Entity(
    tableName = "user_accounts",
    indices = [Index(value = ["userId"], unique = true)]
)
data class UserAccountEntity(
    @PrimaryKey
    val userId: String,
    val username: String,
    val cookie: String,
    val createdAt: Long = System.currentTimeMillis()
)

